package day04;

import java.util.*;


public class Unique2 {
    static Scanner cin = new Scanner(System.in);

    public static void main(String[] args) {
        List<Integer> a = new ArrayList<Integer>();
        while (cin.hasNext()) {
            int cur = cin.nextInt();
            if (a.contains(cur)) continue;//a.indexOf(cur)>=0
            a.add(cur);
        }
        Collections.sort(a);
        System.out.println(a);
    }

}